package com.ztmg.water.service.apartment;

import com.ztmg.water.model.apartment.ApartmentInfo;
import com.ztmg.water.vo.apartment.ApartmentInfoVO;
import com.ztmg.water.dto.apartment.ApartmentInfoDTO;
import com.ztmg.water.dto.apartment.ApartmentInfoPageDTO;
import com.ztmg.common.util.resultUtils.JsonResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ApartmentInfoService{

		JsonResult create(ApartmentInfoDTO dto);
		JsonResult createApartment(ApartmentInfoDTO dto);
		JsonResult update(ApartmentInfoDTO dto);
		JsonResult<ApartmentInfoVO> selectById(Integer id);
		JsonResult<List<ApartmentInfoVO>> select(ApartmentInfoDTO dto);
		JsonResult<PageInfo<ApartmentInfoVO>> selectPage(ApartmentInfoPageDTO dto);
		JsonResult deleteById(Integer id);
		JsonResult delete(ApartmentInfoDTO dto);
}